﻿using SqlSugar;
using System.ComponentModel.DataAnnotations;

namespace net8.Models.XiTong
{
    public class XTLog
    {
        [SugarColumn(IsPrimaryKey = true)]
        public Guid Id { get; set; }

        public Guid UserId { get; set; }

        [SugarColumn(Length = 50)]
        public string LogType { get; set; }
        [SugarColumn(Length = 500)]
        public string BrowserType { get; set; }

        [SugarColumn(Length = 200)]
        public string RequestUrl { get; set; }
        [SugarColumn(Length = 4000)]
        public string RequestBody { get; set; }

        public int Durtion { get; set; }

        public DateTime StartTime { get; set; }

        public DateTime EndTime { get; set; }
        [SugarColumn(Length = 4000)]
        public string ExceptionInfo { get; set; }
    }
}
